package com.yjy.shmily;

import android.content.Context;

import androidx.multidex.MultiDex;

import com.alibaba.android.arouter.launcher.ARouter;
import com.orhanobut.hawk.Hawk;
import com.yjy.mybase.BaseApplication;
import com.yjy.shmily.account.AccountHelper;

public class MainApplication extends BaseApplication {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        //MultiDex分包方法 必须最先初始化
        MultiDex.install(this);

    }

    @Override
    public void onCreate() {
        super.onCreate();
        //
        if (BuildConfig.DEBUG) {
            ARouter.openLog();
            ARouter.openDebug();
        }

        AccountHelper.init();
        Hawk.init(this).build();
    }

}
